package cn.du.com.service.Impl;

import cn.du.com.dao.StudentDao;
import cn.du.com.pojo.Student;
import cn.du.com.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: du
 * @Date: 2021/8/16 16:17
 */
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;


    @Override
    public void save(Student student) {
        studentDao.save(student);
    }

    @Override
    public void delete(Student student) {
        studentDao.delete(student);
    }

    @Override
    public List<Student> findAll() {
        return studentDao.findAll();
    }
}
